package cn.gov.cbrc.core.excp;

/**
 * 项目名称：DC4IT<br>
 * *********************************<br>
 * <P>类名称：BaseException</P>
 * *********************************<br>
 * <P>类描述：自定义异常类</P>
 * 创建人：王川<br>
 * 创建时间：Jul 25, 2014 3:39:47 PM<br>
 * 修改人：王川<br>
 * 修改时间：Jul 25, 2014 3:39:47 PM<br>
 * 修改备注：<br>
 * @version 1.0<br>    
 */
public class BaseException extends Exception{
	
	private static final long serialVersionUID = 1L;

	private String erro_Code;
	private String erro_Info;

    public BaseException() {}

    public BaseException(String message) {
		super(message);
		this.erro_Info = message;
	}
    
    public BaseException(Throwable cause) {
		super(cause);
		erro_Info = cause.getMessage();
	}
    
    public BaseException(String code, String message) {
		super(message);
		erro_Code = code;
		erro_Info = message;
	}
  
    public BaseException(String message, Throwable cause) {
		super(message, cause);
		erro_Info = message;
	}

	public String getErro_Code() {
		return erro_Code;
	}

	public void setErro_Code(String erro_Code) {
		this.erro_Code = erro_Code;
	}

	public String getErro_Info() {
		return erro_Info;
	}

	public void setErro_Info(String erro_Info) {
		this.erro_Info = erro_Info;
	}
    
}
